home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
InfoMagic Internet Tools 1993 July
/
Internet Tools.iso
/
RockRidge
/
security
/
Watcher
/
xmalloc.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1989-07-13
|
318 b
|
26 lines
/*
xmalloc is just a call to malloc with error checking.
Kenneth Ingham
Copyright (C) 1989 The University of New Mexico
*/
#include "defs.h"
char *
xmalloc(size)
unsigned size;
{
char *cp, *malloc();
cp = malloc(size);
if (cp == NULL) {
fprintf(stderr,"malloc died.");
exit(1);
}
return cp;
}